package com.design.softwaredesign.mapper;

import com.design.softwaredesign.entity.Good;
import com.design.softwaredesign.entity.GoodImages;
import com.design.softwaredesign.entity.TransactionLog;
import com.design.softwaredesign.front.GoodInfo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BackCampusMapper {
    public List<Good> getAllCampus(@Param("query") String query, String goodState);

    public void updateCampusImage(GoodImages goodImages);

    public GoodImages getGoodImages(String goodId);

    public Integer updateCampusInfo(GoodInfo goodInfo);

    public List<Good> selectGoodByUserId(String userId);

    public void deleteGoodImagesByGoodId(String goodId);

    public void deleteGoodDataByGoodId(String goodId);

    public void deleteGoodByGoodId(String goodId);

    public Good selectGoodByGoodId(String goodId);

    public TransactionLog selectTransactionLog(String goodId);
}
